import 'package:flutter/material.dart';

class FormPage extends StatelessWidget {
  String title;
  final arguments;

  FormPage({this.title = '表单页面',this.arguments});

  @override
  Widget build(BuildContext context) {
//    Map arguments = ModalRoute.of(context).settings.arguments;
    return Scaffold(
        floatingActionButton: FloatingActionButton(
            child: Text('返回'),
            onPressed: () {
              Navigator.of(context).pop();
            }),
        appBar: AppBar(title: Text(this.title)),
        body: ListView(
          children: [
            ListTile(
              title: Text('1111 --- ${arguments != null ? arguments['id'] : 0}'),
            ),
            ListTile(
              title: Text('1111'),
            ),
            ListTile(
              title: Text('1111'),
            ),
            ListTile(
              title: Text('1111'),
            ),
          ],
        ));
  }
}
